Icon "Assets\Images\Icons\Force System File Update.ico"
SpaceTexts "none"
Var AppDir
Var FileSize
Var Office
Var UpdatedFileCount
#==========================================
# PAGES
#==========================================
ComponentText "Check the files you would like to force update. When force updating a file, the current modified file is not backed up." "" "Select system files to update:"
System::Call "kernel32::GetModuleHandle(t 'shell32.dll') i .s"
System::Call "kernel32::GetProcAddress(i s, i 680) i .r0"
System::Call "::$0() i .r0"
StrCmp "$0" "1" +3
MessageBox MB_OK "The ${NAME} tool cannot be run on a limited user account. $\nThe ${NAME} will now quit." /SD IDOK
Quit
StrCpy $UpdatedFileCount "0"
SetShellVarContext all
#FORCE FILE UPDATE
Push $CMDLINE
Call GetNextParm
Pop $0
StrCpy $9 ""
PARMSLOOP:
Call GetNextParm
Pop $0
StrCmp $0 "" PARMSDONE
StrCpy $1 $0 2
StrCmp $1 "_=" PARMSDONE
StrCmp $0 "/S" PARMSLOOP
StrCpy $0 $0 "" 1
!include "Check Sections.nsi"
Goto PARMSLOOP
PARMSDONE:
Pop $0
FunctionEnd
Function .onGuiEnd
SetOutPath $TEMP
System::Free 0
FunctionEnd
Function "CheckForSelections2"
!insertmacro SectionFlagIsSet ${SYSTEMFILES} ${SF_SELECTED} END ""
!insertmacro SectionFlagIsSet ${SYSTEMFILES} ${SF_PSELECTED} END ""
!insertmacro SectionFlagIsSet ${NTOSKRNL.EXE} ${SF_SELECTED} END ""
!insertmacro SectionFlagIsSet ${LOGONUI.EXE} ${SF_SELECTED} END ""
MessageBox MB_OK|MB_ICONEXCLAMATION "You did not select any items to update. Please look through the options and select only the items that you want to force update."